package Algorithm;

import java.util.Scanner;

public class psvm {
    public static void main(String[] args) throws InterruptedException {
        System.out.println("视频修复：");
        System.out.println("是否开始修复");
        System.out.println("Y/N");
        Scanner s=new Scanner(System.in);
        String c= s.next();
        if ('Y'==c.toCharArray()[0]){
            for (int i=50;i<=100;i++){
                Thread.sleep(200);
                System.out.println("修复进度——————"+i+".0%");
            }
            System.out.println("修复成功！");
            for(float y = (float) 1.5;y>-1.5;y -=0.1)  {
                for(float x= (float) -1.5;x<1.5;x+= 0.05){
                    float a = x*x+y*y-1;
                    if((a*a*a-x*x*y*y*y)<=0.0)  {
                        System.out.print("^");
                    }
                    else
                        System.out.print(" ");
                }
                System.out.println();
            }
        }
    }
}
